import { ColorPicker, Form, InputNumber } from "antd"
import { FieldType } from "../.."

const ReplaceColorOption=()=>{
    return  <>
    <Form.Item<FieldType>
      label="替换色值"
      name="targetColor"
      tooltip="点击上传的图片中的区域，替换被点击点区域内相似色值的块"
      rules={[{ required: true, message: "请选择替换色值" }]}
    >
      <ColorPicker />
    </Form.Item>
    <Form.Item<FieldType>
      label="相近色值相似度"
      tooltip="相似度越低，判断是否要替换被点击区域内的色值越严格"
      name="precision"
      rules={[{ required: true, message: "请输入相似度" }]}
    >
      <InputNumber min={0} max={100} />
    </Form.Item>
  </>

}
export default ReplaceColorOption